//
//  Home_Con.swift
//  jingsha
//
//  Created by 卢逢卫 on 2025/2/28.
//

import UIKit

class Home_Con: BaseController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.view.backgroundColor = .green
        request()
    }
    
    @objc private func request() {
        
        self.view.showLoading()
        provider.rx.request(.getDataUploadWorkbench).mapObject(WorkbenchModel.self).subscribe { (event) in
            switch event {
            case .success(let response):
                self.view.hideLoading()
                if response.status == request_success {
                    
                    
//                    self.listData = response.list
//                    
//                    self.listView.reloadData()
                }
                self.getRequestResult(status: response.status, message: response.message)
                
            case .error(let error):
                self.view.hideLoading()
                self.view.showError(error: error)
            }
            }.disposed(by: disposeBag)
        
    }

}
